<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page errorPage="error.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" charset="utf-8" />
        <link rel="stylesheet" href="css/mystyle.css">
        <script type="text/javascript">
            function check(){
                if(document.ff.nname.value==""||document.ff.pname.value==""||document.ff.ename.value==""||document.ff.passname.value==""||document.ff.oname.value==""){
                    alert("注册信息不能为空！");
                    return false;
                }
                return true;
            }
        </script>
    </head>
    <body>
        <div class="container">
            <h1 class="text-primary text-center">用户注册</h1>
            <a href="index" class="btn btn-sm btn-warning text-center">返回首页</a>
            <div class="bg-success RegisterForm">
            <form onsubmit="return check()" name="ff" action="ams">
                真实姓名：<input class="form-control" style="width:300px" name="nname" type="text"><br>
    <!--            性别：<label for="gid1">男</label><input name="gname" id="gid1" type="radio" value="男">
                <label for="gid2">女</label><input name="gname" id="gid2" type="radio" value="女"><br>-->
                性别：
                <select class="form-control" style="width: 300px" name="gname">
                    <option value="男">男</option>
                    <option value="女">女</option>
                </select><br>
                手机号：<input class="form-control" style="width:300px" name="pname" type="text"><br>
                邮箱：<input class="form-control" style="width:300px" name="ename" type="text"><br>
                密码：<input class="form-control" style="width:300px" name="passname" type="password"><br>
                职业：<input class="form-control" style="width:300px" name="oname" type="text"><br>
                感兴趣书籍类型：
                <select class="form-control" style="width:300px" name="iname">
                    <option value="教育">教育</option>
                    <option value="小说">小说</option>
                    <option value="文艺">文艺</option>
                    <option value="青春文学">青春文学</option>
                    <option value="儿童">儿童</option>
                    <option value="人文社科">人文社科</option>
                    <option value="经管">经管</option>
                    <option value="励志">励志</option>
                    <option value="生活">生活</option>
                    <option value="科技">科技</option>
                    <option value="英语">英语</option>
                </select><br>
                <button class="btn btn-default">注册</button>
            </form>
            </div>
        </div>
    </body>
</html>
